package com.runshu.newsmartark.mvp.model;

import com.runshu.newsmartark.common.ConstantUrl;
import com.runshu.newsmartark.entity.WeatherEntity;
import com.runshu.newsmartark.mvp.contract.HwHeartContract;
import com.runshu.newsmartark.network.netbean.HttpRequestParamsBuilder;
import com.runshu.newsmartark.network.netbean.ResponseBean;
import com.runshu.newsmartark.network.netinterface.BaseCallBack;

/**
 * Demo class
 *
 * @author yu
 * @date 2020/10/30
 * @decs：
 */

public class HwHeartModel extends BaseModel implements HwHeartContract.Model {
    @Override
    public void sendHwHeart(String macAddress, BaseCallBack baseCallBack) {
        HttpRequestParamsBuilder builder = new HttpRequestParamsBuilder();
        builder.putParams("macAddress",macAddress);
        super.initDataFromServer(ConstantUrl.HW_HEART,builder.build(), ResponseBean.class, ResponseBean.RES_DATATYPE_BEAN,baseCallBack);
    }
}